how to populate list in c#

35

how to populate list in c# -

var list = new List<IMyCustomType>{ 
    new MyCustomTypeOne(), 
    new MyCustomTypeTwo(), 
    new MyCustomTypeThree() 
};

Comments

Submit
0 Comments